import request from '@/utils/request'


// 获取待办箱列表
export function getDbxList(data) {
  return request({
    url: '/flow/information/list',
    method: 'get',
    params: data
  })
}
// 获取已办箱列表
export function getYbxList(data) {
  return request({
    url: '/flow/done/list',
    method: 'get',
    params: data
  })
}
// 获取办结箱列表
export function getBjxList(data) {
  return request({
    url: '/flow/conclude/list',
    method: 'get',
    params: data
  })
}
// 流程创建
export function startProcess(data) {
  return request({
    url: '/flowable/startProcess',
    method: 'post',
    data
  })
}
// 下个环节参与者(选择办理人)
export function nextActivityParticipants(data) {
  return request({
    url: '/flowable/nextActivityParticipants',
    method: 'get',
    params: data
  })
}
// 流程发送
export function lcfs(data) {
  return request({
    url: '/flowable/lcfs',
    method: 'post',
     data
  })
}
// 办件回退
export function parallel(data) {
  return request({
    url: '/flowable/parallel',
    method: 'post',
     data
  })
}
export default {
  lcfs: (data) => {
    return request({
      url: '/flowable/lcfs',
      method: 'post',
       data
    })
  },
  parallel: (data) => {
    return request({
      url: '/flowable/parallel',
      method: 'post',
       data
    })
  }
}
